package com.iptv.grape.net.Entity;

import android.util.Log;

import com.google.gson.Gson;

public class TTLResult extends NetBaseResult{
    private TTLDataResult data;

    public TTLDataResult getData() {
        return data;
    }

    public void setData(TTLDataResult data) {
        this.data = data;
    }

    public static TTLResult CreateForJson(String json){
        try {
            TTLResult ttlResult = new Gson().fromJson(json, TTLResult.class);
            return ttlResult;
        }
        catch (Exception e){
            Log.e("TTLResult", e.getMessage() );
            return null;
        }
    }
}
